﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataModels.Models.Messaging
{
    public class MessagingLog
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int MessagingLogId { get; set; }

        [Required]
        [StringLength(50)]
        [ForeignKey("OtherSystemUserNumber")]
        public string PhoneNumber { get; set; }

        [Required]
        [StringLength(1000)]
        public string MessageBody { get; set; }

        public DateTime DateSendReceived { get; set; }
        public bool IsMessageSentToUser { get; set; }

        public virtual OtherSystemUserNumber OtherSystemUserNumber { get; set; }
    }
}
